06 / 10

List all Action Commands

These commands simulate user interactions with the application:​
  1. 1

    cy.visit(url): Navigates to a specified URL.​

  2. 2

    cy.reload(): Reloads the current page.​

  3. 3

    cy.go(direction): Navigates forward or backward in the browser history.​

  4. 4

    cy.click(): Clicks on an element.​

  5. 5

    cy.dblclick(): Double-clicks on an element.​

  6. 6

    cy.rightclick(): Right-clicks on an element.​

  7. 7

    cy.type(text): Types text into an input field.​

  8. 8

    cy.clear(): Clears the value of an input field.​

  9. 9

    cy.check() / cy.uncheck(): Checks or unchecks a checkbox or radio button.​

  10. 10

    cy.select(value): Selects an option from a dropdown.​

  11. 11

    cy.focus() / cy.blur(): Focuses or blurs an element.​

  12. 12

    cy.scrollTo(position): Scrolls the page to a specific position.​

  13. 13

    cy.trigger(event): Triggers a specific event on an element.​